<template>
  <div class="app-container">
    <el-tabs v-model="activeName" @tab-click="handleClick">
      <el-tab-pane label="人员管理" name="1" ref="peopleManagement">
        <peopleManagement v-if="activeName == '1'" />
      </el-tab-pane>
      <el-tab-pane label="监测区域配置" name="2" ref="monitoringArea">
        <monitoringArea v-if="activeName == '2'" />
      </el-tab-pane>
      <el-tab-pane label="客流配置" name="3" ref="passengerFlow">
        <passengerFlow v-if="activeName == '3'" />
      </el-tab-pane>
      <el-tab-pane label="设备管理" name="4" ref="equipment">
        <equipment v-if="activeName == '4'" />
      </el-tab-pane>
      <el-tab-pane label="白名单" name="5" ref="whitelist">
        <whitelist v-if="activeName == '5'" />
      </el-tab-pane>
    </el-tabs>
  </div>
</template>

<script>
import peopleManagement from "./peopleManagement/index.vue";
import monitoringArea from "./monitoringArea/index.vue";
import passengerFlow from "./passengerFlow/index.vue";
import equipment from "./equipment/index.vue";
import whitelist from "./whitelist/index.vue";
export default {
  components: {
    peopleManagement,
    monitoringArea,
    passengerFlow,
    equipment,
    whitelist,
  },
  data() {
    return {
      activeName: "1",
    };
  },
  methods: {
    handleClick() {},
  },
};
</script>
